package com.hw.ui.relation_info;

import com.hw.base.present.BasePresenter;
import com.hw.daobean.ProductInfo;
import java.util.List;

public class RelationInfoPresent extends BasePresenter<RelationInfoModel, RelationInfoView> implements RelationInfoModel.CallBack {
    public void showplist() {
        model.showp(this);
    }

    public void showpidlist(String id) {
        model.showpID(id,this);
    }

    public int getnum(String pid,String batch) {
        return model.getnum(pid,batch);
    }

    public int getUpnum(String pid,String batch) {
        return model.getUpnum(pid,batch);
    }

    @Override
    public void onshowp(List<ProductInfo> list) {
        view.showPlist(list);
    }

    @Override
    public void onnotifyp(List<ProductInfo> list) {
        view.notifyPlist(list);
    }
}


